package com.nengchuan.eic.nceconomy.service;

import com.github.pagehelper.PageInfo;
import com.nengchuan.eic.nceconomy.entity.dto.SwFilePageDTO;
import com.nengchuan.eic.nceconomy.entity.dto.SwFileSaveDTO;
import com.nengchuan.eic.nceconomy.entity.po.SwFile;
import com.baomidou.mybatisplus.extension.service.IService;
import com.nengchuan.eic.nceconomy.entity.vo.SwFileVO;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author panwen
 * @since 2020-05-25
 */
public interface SwFileService extends IService<SwFile> {

    List<SwFileVO> page(SwFilePageDTO dto);

    @Transactional(rollbackFor = Exception.class)
    void syncFileComputeStatus();

    @Transactional(rollbackFor = Exception.class)
    boolean insertOrUpdate(@Valid SwFileSaveDTO dto) throws Exception;
}
